#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include "SpeedReader/speedreader.h"
#include "SpeedReader/txtreader.h"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    
private:
    Ui::Widget *ui;

    SpeedReader *pSpeedReader;
    TxtReader *pTxtReader;

public slots:
    void processError(SpeedReaderError error);
    void processEndOfBook();
    void processReadingProgress(double p);

private slots:
    void on_pushButtonStart_clicked();
    void on_pushButtonStop_clicked();
};

#endif // WIDGET_H
